package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.project.PGroup;
import cn.edu.sjtu.se.dslab.project.Project;


public interface IProjectDao {
	
	public void save(Project project);
	public Project update(Project project);
	
	public List<Project> queryByList();

	public Project queryById(long id);
	public Project queryByUri(String uri);
	
	public List<Project> queryDesignPatternCategoryByUserId(long userId);
	public List<Project> queryDesignPatternCategoryByList();
	public List<Project> queryDesignPatternCategoryByAttr(int pageNum, String name, String description, long groupId);
	
	public List<Project> queryValidProjects();

}
